@extends('layouts/admin')
	@section('content')
		<div class="login_box">
			<h1>Blog</h1>
			<h2>欢迎使用博客管理平台</h2>
			<div class="form">
				@if(session('msg'))
					<p style="color:red">{{session('msg')}}</p>
				@endif
				<form action="" method="post">
					<ul>
						<li>{{csrf_field()}}</li>
						<li>
						<input type="text" name="username" class="text"/>
							<span><i class="fa fa-user"></i></span>
						</li>
						<li>
							<input type="password" name="password" class="text"/>
							<span><i class="fa fa-lock"></i></span>
						</li>
						<li>
							<input type="text" class="code" name="code"/>
							<span><i class="fa fa-check-square-o"></i></span>
							<img src="{{url('setCode')}}" alt="picture lost" onclick="this.src='{{url('setCode')}}?'+Math.random()">
						</li>
						<li>
							<input type="submit" value="立即登陆"/>
						</li>
					</ul>
				</form>
				<p>&copy; 2016 Powered by <a href="#" target="_blank">yovan</a></p>
			</div>
		</div>
	@endsection